home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWWindow / Include / FWShdWin.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.0 KB  |  70 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWShdWin.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWSHDWIN_H
  11. #define FWSHDWIN_H
  12.  
  13. #ifndef FWTCOLL_H
  14. #include "FWTColl.h"
  15. #endif
  16.  
  17. #ifndef FWODTYPS_H
  18. #include "FWODTyps.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. class FW_CFloatingWindow;
  26. class ODWindowState;
  27.  
  28. //========================================================================================
  29. //    class FW_CPrivSharedWindow
  30. //========================================================================================
  31.  
  32. class FW_CPrivSharedWindow 
  33. {
  34. //----------------------------------------------------------------------------------------
  35. //    Constructors/Destructor
  36. //
  37. public:
  38.     FW_CPrivSharedWindow(ODTypeToken presentationType);
  39.     ~FW_CPrivSharedWindow();
  40.     
  41. //----------------------------------------------------------------------------------------
  42. //    New API
  43. //
  44. public:
  45.     FW_CFloatingWindow*         GetFloatingWindow(Environment* ev, ODPart* part) const;
  46.     
  47.     ODID                        GetWindowID() const
  48.                                     {return fWindowID;}
  49.     void                        SetWindowID(ODID windowID);
  50.     
  51.     ODTypeToken                    GetPresentationType() const
  52.                                     {return fPresentation;}
  53.                                     
  54.     void                        HideShow(Environment *ev, ODWindowState* windowState, FW_Boolean state);
  55.     
  56.     void                        AddWindow(FW_CFloatingWindow* window);
  57.     void                        RemoveWindow(FW_CFloatingWindow* window);
  58.     long                        CountWindow() const;
  59.     
  60. //----------------------------------------------------------------------------------------
  61. //    Data Members
  62. //
  63. private:
  64.     ODID                                            fWindowID;
  65.     ODTypeToken                                     fPresentation;
  66.     FW_Boolean                                        fWasShown;
  67.     FW_TOrderedCollection<FW_CFloatingWindow>*        fWindowList;
  68. };
  69.  
  70. #endif